/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aqlm.data;

import org.rainbow.annotation.xml.ParentAttr;

/**
 *
 * @author hironaga
 */
public class RsvMngUDO {

    @ParentAttr( attrName="file" )
    //@NodeAttr( elementName="rsv", attrName="file" )
    private String fileName;

    @ParentAttr( attrName="checked" )
    //@NodeAttr( elementName="rsv", attrName="checked" )
    private String checkedStr;

//    private boolean checked;

    @Override
    public String toString() {
        return //super.toString();
                "fileName:" + this.fileName +
                " ,checkedStr:" + this.checkedStr +
                " ,checked:" + isChecked();
    }

    public boolean isChecked() {
        boolean result = false;
        if("0".equals(checkedStr)){
            result = true;
        }
        else if("1".equals(checkedStr)){
            result = false;
        }
        return result;
    }

    public String getCheckedStr() {
        return checkedStr;
    }

    public void setCheckedStr(String checkedStr) {
        this.checkedStr = checkedStr;
//        if("0".equals(checkedStr)){
//            setChecked(true);
//        }
//        else if("1".equals(checkedStr)){
//            setChecked(false);
//        }
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

}
